-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add game test section #279
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for nimble-elf-d9d491 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
All fixed up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you change line 60 to:
@[code lang=log transcludeWith=:::automatic-testing:5](@/reference/latest/src/test/java/com/example/docs/codec/BeanTypeTest.java)
|
||
### Writing Game Tests {#writing-game-tests} | ||
|
||
You can now create server and client game tests in the `src/gametest/java` directory. Here is a barebones example of each. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can now create server and client game tests in the `src/gametest/java` directory. Here is a barebones example of each. | |
You can now create server and client game tests in the `src/gametest/java` directory. Here is a basic example for each: |
|
||
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsClientGameTest.java | ||
|
||
See the respective javadocs in Fabric API for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the respective javadocs in Fabric API for more info. | |
See the respective Javadocs in Fabric API for more info. |
Server game test: | ||
|
||
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsGameTest.java | ||
|
||
Client game test: | ||
|
||
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsClientGameTest.java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Server game test: | |
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsGameTest.java | |
Client game test: | |
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsClientGameTest.java | |
::: code-group | |
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsGameTest.java [Server] | |
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsClientGameTest.java [Client] | |
::: |
Add a basic guide for game tests. Details could be added later.